require 'watir'
include Watir
require 'test/unit'
require 'watir/contrib/enabled_popup'
class TC_blogsFrontEnd < Test::Unit::TestCase
  	def test_61_cleanup_Blogs

$ie.goto('http://localhost/cs/controlpanel/BlogAdmin/Blogs.aspx')

$ie.link(:text, 'Delete').click_no_wait
      hwnd = $ie.enabled_popup(10)
      if(hwnd)
        w = WinClicker.new
        w.clickWindowsButton_hwnd(hwnd, "OK")
      end
      $ie.wait()
$ie.link(:text, 'Delete').click_no_wait
      hwnd = $ie.enabled_popup(10)
      if(hwnd)
        w = WinClicker.new
        w.clickWindowsButton_hwnd(hwnd, "OK")
      end
      $ie.wait()
$ie.link(:text, 'Delete').click_no_wait
      hwnd = $ie.enabled_popup(10)
      if(hwnd)
        w = WinClicker.new
        w.clickWindowsButton_hwnd(hwnd, "OK")
      end 
      $ie.wait()
$ie.link(:text, 'Delete').click_no_wait
      hwnd = $ie.enabled_popup(10)
      if(hwnd)
        w = WinClicker.new
        w.clickWindowsButton_hwnd(hwnd, "OK")
      end 
      $ie.wait()
$ie.link(:text, 'Delete').click_no_wait
      hwnd = $ie.enabled_popup(10)
      if(hwnd)
        w = WinClicker.new
        w.clickWindowsButton_hwnd(hwnd, "OK")
      end
      $ie.wait()
$ie.link(:text, 'Delete').click_no_wait
      hwnd = $ie.enabled_popup(10)
      if(hwnd)
        w = WinClicker.new
        w.clickWindowsButton_hwnd(hwnd, "OK")
      end
      $ie.wait()      
$ie.link(:text, 'Edit').click
$ie.radio(:id, /ctl00_ctl00_TaskRegion_SectionDetails1_SectionDetails1_ynIsActive_0/).set
$ie.link(:text, 'Save').click
$ie.goto($UniVar)      
      
    end
  end
  